package com.keyleaf.up.document.handler;


import com.keyleaf.up.document.model.OfficeConfig;

/**
 * @author keyleaf
 * @since 2025/5/30
 **/
public class DefaultToPdfHandler extends AbstractDocumentToPdfHandler {

    {
        supportedMimeTypes.add("application/pdf");

        // office类
        supportedMimeTypes.add("application/vnd.ms-excel");
        supportedMimeTypes.add("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        supportedMimeTypes.add("application/vnd.ms-powerpoint");
        supportedMimeTypes.add("application/vnd.openxmlformats-officedocument.presentationml.presentation");
        supportedMimeTypes.add("application/vnd.ms-word");
        supportedMimeTypes.add("application/msword");
        supportedMimeTypes.add("application/vnd.openxmlformats-officedocument.wordprocessingml.document");

        // 文本类
        supportedMimeTypes.add("application/xml");
        supportedMimeTypes.add("text/xml");
        supportedMimeTypes.add("text/plain");
        supportedMimeTypes.add("text/x-web-markdown");

        // 图片类
        supportedMimeTypes.add("image/jpeg");
        supportedMimeTypes.add("image/png");
    }

    public DefaultToPdfHandler(OfficeConfig officeConfig) {
        super(officeConfig);
    }

}
